import * as Cesium from "../../node_modules/cesium/Source/Cesium.js";
// import Cesium from "cesium";//无效
// import * as Cesium from "cesium";//无效

export default function init(CB) {

  window.CESIUM_BASE_URL = "/public/cesiumSource"; //设置静态资源路径,必须!!!!

  CB.prototype.Cesium = Cesium;

  CB.prototype.init = function (domContainer) {
    console.log("神说要有光!!!");
    var viewer = new this.Cesium.Viewer(domContainer);

    CB.prototype.viewer = viewer;
  };
}
